NET MESSAGE MEMBLOCK

This command will return a memblock from the current net message.

  Syntax
NET MESSAGE MEMBLOCK Memblock Number
  Parameters
Memblock Number
Integer
The memblock number

  Returns

This command does not return a value.

  Description

The net message must be of the memblock type or the command will fail. You can determine the type using the NET MESSAGE TYPE command. If a memblock already exists under this number, that memblock is deleted and the new memblock is created in its place.

  Example Code
rem Network game can communicate sounds, images and 3D data
while inkey$()<>"z"
cls
print "HANDLE ADVANCED NET MESSAGES (Press Z To Continue)"
print "SENDING..."
GuarenteePacket=1
make memblock 1, 1024
send net message memblock 0, 1, GuarenteePacket
delete memblock 1
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=4
net message memblock 1
delete memblock 1
endif
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index